package com.itheima.d15_api_StringBuilder;

public class Test2 {
    public static void main(String[] args) {
        //拼接100万次abc，建议用StringBuilder

        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 1000000; i++) {
            sb.append("abc");
        }
        System.out.println(sb);
    }
}
